import { OssConfigModel,OssPolicyModel } from "../models/oss-config-model";
import { getApplicationContainer } from '../../../get-application-container';

export const  ossConfigService = {
     getToken: () =>
        getApplicationContainer().httpService.json<OssConfigModel>('/applet/OssService/getToken'),
     getPolicy: (params?: any) =>
        getApplicationContainer().httpService.json<OssPolicyModel>('/treasure/community/oss/oss-policy', {
              ... params
            }), 
}